﻿<UserControl x:Class="Skugo.StandardPlugins.CommandUIElement"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="26" d:DesignWidth="300">
    <DockPanel HorizontalAlignment="Stretch">
        <Popup Name="DescriptionPopup" DockPanel.Dock="Right" Placement="Right" PlacementTarget="{Binding ElementName=ExpandTooltip}" PopupAnimation="Fade" AllowsTransparency="True">
            <Border Padding="4" Margin="10" BorderBrush="CornflowerBlue" BorderThickness="1" CornerRadius="3" Background="CornflowerBlue">
                <TextBlock Name="Description" Background="CornflowerBlue" MaxWidth="400"></TextBlock>
            </Border>
        </Popup>
        <Expander DockPanel.Dock="Right" ExpandDirection="Right" Margin="0" Padding="0" Expanded="Expander_Expanded" Name="ExpandTooltip" Collapsed="ExpandTooltip_Collapsed" />
        <TextBlock Name="CommandName" HorizontalAlignment="Stretch" Text="Hello world" Height="19" />
    </DockPanel>
</UserControl>
